﻿@{
    ViewBag.Title = "Admin - Crear Habitacion";
}

<h2>Crear Habitacion</h2>
<form name="crearCategoria" method="post" action="@Url.Action("CrearHabitacion", "Habitacion")">
    <div class="form-group">
        <label class="control-label">Piso</label>
        <input style="width:270px;" min="1" required class="form-control" name="txtPiso" type="number" />
    </div>
    <div class="form-group">
        <label class="control-label">Numero</label>
        <input style="width:270px;" min="1" required class="form-control" name="txtNumero" type="number" />
    </div>
    <div class="form-group">
        <label class="control-label">Capacidad</label>
        <input style="width:270px;" min="1" required class="form-control" name="txtCapacidad" type="number" />
    </div>
    <div class="form-group">
        <label class="control-label">Categoria</label>
        <br />
        <select class="form-control" style="width:270px;" name="selCategorias">
            @foreach (var categoria in ViewBag.Categorias)
            {
                <option value="@categoria.IdCategoria">@categoria.Nombre</option>
            }
        </select>
    </div>
    <div>
        <button class="btn btn-success" name="btnEnviar">Crear Habitacion</button>
    </div>
</form>
